package cdu.sl.aichatdemo.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * <p>
 * 
 * </p>
 *
 * @author Sunlin
 * @since 2025-08-28
 */
@Data
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@TableName("custom_chat_memory")
public class CustomChatMemory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 对话id
     */
    private String conversationId;

    /**
     * 关联的用户id
     */
    private Long userId;

    /**
     * 类型,是USER还是ASSISTANT
     */
    private String type;

    /**
     * 内容
     */
    private String content;

    /**
     * 序号,标识这是同一对话id内的第几条对话
     */
    private Integer orderIndex;

    private String status;

    /**
     * 对话的标题
     */
    private String title;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;


}
